package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.qf.mapper.DtsAdminMapper;
import com.qf.pojo.DtsAdmin;
import com.qf.service.DtsAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DtsAdminServiceImpl implements DtsAdminService {
    @Autowired
    DtsAdminMapper dtsAdminMapper;
    @Override
    public DtsAdmin findByUsername(String username) {
        LambdaQueryWrapper<DtsAdmin> qw = new LambdaQueryWrapper();
        qw.eq(DtsAdmin::getUsername,username);
        DtsAdmin dtsAdmin = dtsAdminMapper.selectOne(qw);
        return dtsAdmin;
    }
}
